<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>EasyXPlus: EasyXPlus::Text Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">EasyXPlus
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">EasyXPlus is a simple graphic library for C++ BEGINNERS under Windows.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>EasyXPlus</b></li><li class="navelem"><a class="el" href="class_easy_x_plus_1_1_text.html">Text</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="class_easy_x_plus_1_1_text-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">EasyXPlus::Text Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A class for text operations.  
 <a href="class_easy_x_plus_1_1_text.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="easy_text_8h_source.html">easyText.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr class="memitem:a89df0050a834d1dc4d101665d956bbc5"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_x_plus_1_1_text.html#a89df0050a834d1dc4d101665d956bbc5">setFont</a> (std::wstring fontName)</td></tr>
<tr class="memdesc:a89df0050a834d1dc4d101665d956bbc5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the text font to the given fontname.  <a href="#a89df0050a834d1dc4d101665d956bbc5">More...</a><br /></td></tr>
<tr class="separator:a89df0050a834d1dc4d101665d956bbc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78342bf37464d8ed2308a963eb8f02a1"><td class="memItemLeft" align="right" valign="top"><a id="a78342bf37464d8ed2308a963eb8f02a1"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><b>setBold</b> (bool isBold)</td></tr>
<tr class="separator:a78342bf37464d8ed2308a963eb8f02a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a496249b282fe8d0de1933885e3d0bb56"><td class="memItemLeft" align="right" valign="top"><a id="a496249b282fe8d0de1933885e3d0bb56"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><b>setItalic</b> (bool isItalic)</td></tr>
<tr class="separator:a496249b282fe8d0de1933885e3d0bb56"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7740b114a60d2b85fc4594c20c114530"><td class="memItemLeft" align="right" valign="top"><a id="a7740b114a60d2b85fc4594c20c114530"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><b>setUnderline</b> (bool isUnderline)</td></tr>
<tr class="separator:a7740b114a60d2b85fc4594c20c114530"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c7a6de75da32efd730bc411d823b70e"><td class="memItemLeft" align="right" valign="top"><a id="a8c7a6de75da32efd730bc411d823b70e"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_x_plus_1_1_text.html#a8c7a6de75da32efd730bc411d823b70e">setFontSize</a> (unsigned pointSize)</td></tr>
<tr class="memdesc:a8c7a6de75da32efd730bc411d823b70e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the font size to the given size in point size unit. <br /></td></tr>
<tr class="separator:a8c7a6de75da32efd730bc411d823b70e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84ad48733a09b935a824b51e58a520ef"><td class="memItemLeft" align="right" valign="top"><a id="a84ad48733a09b935a824b51e58a520ef"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><b>setTextColor</b> (const <a class="el" href="class_easy_x_plus_1_1_colorable.html">Colorable</a> &amp;color)</td></tr>
<tr class="separator:a84ad48733a09b935a824b51e58a520ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afdd5055c9f0dbc2212e126dfd58b0037"><td class="memItemLeft" align="right" valign="top"><a id="afdd5055c9f0dbc2212e126dfd58b0037"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><b>setBkColor</b> (const <a class="el" href="class_easy_x_plus_1_1_colorable.html">Colorable</a> &amp;color)</td></tr>
<tr class="separator:afdd5055c9f0dbc2212e126dfd58b0037"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr class="memitem:a60bb271df9fbe555b708b0e9685e34e1"><td class="memItemLeft" align="right" valign="top"><a id="a60bb271df9fbe555b708b0e9685e34e1"></a>
static std::wstring&#160;</td><td class="memItemRight" valign="bottom"><b>getCurrentFontName</b> ()</td></tr>
<tr class="separator:a60bb271df9fbe555b708b0e9685e34e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63898ca7e41b567248404da546a06d7f"><td class="memItemLeft" align="right" valign="top"><a id="a63898ca7e41b567248404da546a06d7f"></a>
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>isCurrentBold</b> ()</td></tr>
<tr class="separator:a63898ca7e41b567248404da546a06d7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d64ed1b0bee3ca2263b7ebc36e58b3f"><td class="memItemLeft" align="right" valign="top"><a id="a7d64ed1b0bee3ca2263b7ebc36e58b3f"></a>
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>isCurrentItalic</b> ()</td></tr>
<tr class="separator:a7d64ed1b0bee3ca2263b7ebc36e58b3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90acf77ba8c8ce18a0f976645b5a4827"><td class="memItemLeft" align="right" valign="top"><a id="a90acf77ba8c8ce18a0f976645b5a4827"></a>
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>isCurrentUnderline</b> ()</td></tr>
<tr class="separator:a90acf77ba8c8ce18a0f976645b5a4827"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93a7aef95db6359011dd8a42eec5b074"><td class="memItemLeft" align="right" valign="top"><a id="a93a7aef95db6359011dd8a42eec5b074"></a>
static unsigned&#160;</td><td class="memItemRight" valign="bottom"><b>getCurrentFontSize</b> ()</td></tr>
<tr class="separator:a93a7aef95db6359011dd8a42eec5b074"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c57b8d985fe289d80a5b080e6590f75"><td class="memItemLeft" align="right" valign="top"><a id="a0c57b8d985fe289d80a5b080e6590f75"></a>
static <a class="el" href="class_easy_x_plus_1_1_rgb.html">Rgb</a>&#160;</td><td class="memItemRight" valign="bottom"><b>getCurrentTextColor</b> ()</td></tr>
<tr class="separator:a0c57b8d985fe289d80a5b080e6590f75"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a7981a839156d02da8eb78253cbe854"><td class="memItemLeft" align="right" valign="top"><a id="a4a7981a839156d02da8eb78253cbe854"></a>
static <a class="el" href="class_easy_x_plus_1_1_rgb.html">Rgb</a>&#160;</td><td class="memItemRight" valign="bottom"><b>getCurrentBkColor</b> ()</td></tr>
<tr class="separator:a4a7981a839156d02da8eb78253cbe854"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr class="memitem:a08fb145d10c12255a0d09585bf13e863"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_easy_x_plus_1_1_rect.html">Rect</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_x_plus_1_1_text.html#a08fb145d10c12255a0d09585bf13e863">getOutputSize</a> (std::wstring text)</td></tr>
<tr class="memdesc:a08fb145d10c12255a0d09585bf13e863"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the string size if it is to be drawn.  <a href="#a08fb145d10c12255a0d09585bf13e863">More...</a><br /></td></tr>
<tr class="separator:a08fb145d10c12255a0d09585bf13e863"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c348590db27c3b66f46bd0796fb69fd"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_easy_x_plus_1_1_text.html#a0c348590db27c3b66f46bd0796fb69fd">output</a> (const <a class="el" href="class_easy_x_plus_1_1_point.html">Point</a> pos, std::wstring text)</td></tr>
<tr class="memdesc:a0c348590db27c3b66f46bd0796fb69fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Output the string at the given position in the default window.  <a href="#a0c348590db27c3b66f46bd0796fb69fd">More...</a><br /></td></tr>
<tr class="separator:a0c348590db27c3b66f46bd0796fb69fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A class for text operations. </p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000001">Todo:</a></b></dt><dd>Add a <a class="el" href="class_easy_x_plus_1_1_text.html#a8c7a6de75da32efd730bc411d823b70e" title="Set the font size to the given size in point size unit. ">setFontSize()</a> overload that uses pixel size to set the font. </dd></dl>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a08fb145d10c12255a0d09585bf13e863"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a08fb145d10c12255a0d09585bf13e863">&#9670;&nbsp;</a></span>getOutputSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_easy_x_plus_1_1_rect.html">Rect</a> EasyXPlus::Text::getOutputSize </td>
          <td>(</td>
          <td class="paramtype">std::wstring&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the string size if it is to be drawn. </p>
<dl class="section remark"><dt>Remarks</dt><dd>The string size is only affected by the font size and the string content. </dd></dl>

</div>
</div>
<a id="a0c348590db27c3b66f46bd0796fb69fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c348590db27c3b66f46bd0796fb69fd">&#9670;&nbsp;</a></span>output()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EasyXPlus::Text::output </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_easy_x_plus_1_1_point.html">Point</a>&#160;</td>
          <td class="paramname"><em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::wstring&#160;</td>
          <td class="paramname"><em>text</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Output the string at the given position in the default window. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="class_easy_x_plus_1_1_easy_except.html" title="The exception type used by EasyXPlus library. ">EasyExcept</a></td><td>If Window::int() is not called, it throws an exception. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a89df0050a834d1dc4d101665d956bbc5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a89df0050a834d1dc4d101665d956bbc5">&#9670;&nbsp;</a></span>setFont()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EasyXPlus::Text::setFont </td>
          <td>(</td>
          <td class="paramtype">std::wstring&#160;</td>
          <td class="paramname"><em>fontName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the text font to the given fontname. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="class_easy_x_plus_1_1_easy_except.html" title="The exception type used by EasyXPlus library. ">EasyExcept</a></td><td>If the font specified by the filename cannot be find, it throws an exception. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="easy_text_8h_source.html">easyText.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
